import java.util.ArrayList;
import java.util.Arrays;

public class StreamDemo3 {
    public static void main(String[] args){
//1.数组创建
        int[] arr1={1,2,3,4,5,6};
        String[] arr2={"a","b","c"};
        //获取stream流
        Arrays.stream(arr1).forEach(s-> System.out.println(s));

        Arrays.stream(arr2).forEach(s-> System.out.println(s));
    }
}
